<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo Configure::read('Site.charset'); ?>" xml:lang="<?php echo Configure::read('Site.charset'); ?>">
<head>
	<?php echo $html->charset(); ?>
	<title>
		<?php echo $title_for_layout; ?> /
		<?php echo Configure::read('Site.sitename'); ?>
	</title>
	<?php
		//echo $html->meta('icon', $html->url('/img/favicon.ico'));
		
		//echo $html->css('/extend/css/thickbox');
		
		echo $html->css('nyroModal');

		echo $html->css('joefriel');
		
		//echo $html->css('dev');
		
		
		
		echo $javascript->link('/extend/js/jquery'); 
		
		//echo $javascript->link('/extend/js/thickbox'); 
		
		echo $javascript->link('jquery.nyroModal-1.5.2.min'); 
				
		echo $javascript->link('joefriel'); 

		//echo $scripts_for_layout;
	?>
	
	
</head>
<?php if($this->params['controller'] != "pages") {
	$body_id = $this->params['controller'];
} else {
	$body_id = $this->params['pass'][count($this->params['pass'])-1];
}?>
<body id="<?php echo $body_id; ?>">
		<div id="container"> 
			<div id="header">
				<strong id="logo"><?php echo $html->link('Oslofjord Triatlon', "/"); ?></strong>
				<p id="description">
					<a href="http://www.oslofjordtri.com" rel="external">Gå til Oslofjord Triatlon's hjemmeside</a>
				</p>
			</div>
			<div id="content">
				<?php $session->flash(); ?>
				<?php echo $content_for_layout; ?>
			</div>
		</div>
		<div id="footer">
			<p>Powered by <a href="http://www.gersh.no" rel="external">Gerhard Sletten</a> and <a href="http://www.cakephp.org" rel="external">CakePHP</a></p>
		</div>
	<!--
	<div id="debug">
		<?php echo $cakeDebug; ?>
	</div>
	-->
	<script type="text/javascript">
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	</script>
	<script type="text/javascript">
	try {
	var pageTracker = _gat._getTracker("UA-2212104-24");
	pageTracker._trackPageview();
	} catch(err) {}</script>
</body>
</html>